package com.kgc.sbt.domain;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * coupon
 * @author 
 */
@Data
@ApiModel(value = "优惠券实体",description = "返回优惠券数据解释")
public class Coupon implements Serializable {
    /**
     * 优惠券id
     */
    @ApiModelProperty(name = "id",value = "优惠券id",example = "1")
    private Integer id;

    /**
     * 优惠券名称
     */
    @ApiModelProperty(name = "name",value = "优惠券名称",example = "满100减5")
    private String name;

    /**
     * 类型（1-满减，2-直接减）
     */
    @ApiModelProperty(name = "type",value = "类型（1-满减，2-直接减）",example = "1")
    private Integer type;

    /**
     * 可用品类（0-全品类，数字-商品分类编号）
     */
    @ApiModelProperty(name = "used",value = "可用品类（0-全品类，数字-商品分类编号）",example = "21004")
    private Integer used;

    /**
     * 需要积分
     */
    @ApiModelProperty(name = "score",value = "需要积分",example = "10")
    private Integer score;

    /**
     * 发放开始时间
     */
    @ApiModelProperty(name = "startTime",value = "发放开始时间",example = "2020-11-22 23:22:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /**
     * 发放结束时间
     */
    @ApiModelProperty(name = "endTime",value = "发放结束时间",example = "2020-11-22 23:22:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     * 优惠券金额
     */
    @ApiModelProperty(name = "money",value = "优惠券金额",example = "5")
    private Integer money;

    /**
     * 金额满
     */
    @ApiModelProperty(name = "fullMoney",value = "金额满",example = "100")
    private Integer fullMoney;

    /**
     * 优惠券张数
     */
    @ApiModelProperty(name = "count",value = "优惠券张数",example = "100")
    private Integer count;

    /**
     * 已经领取的张数
     */
    @ApiModelProperty(name = "takeCount",value = "已经领取的张数",example = "0")
    private Integer takeCount;

    /**
     * 已经使用的张数
     */
    @ApiModelProperty(name = "usedCount",value = "已经使用的张数",example = "0")
    private Integer usedCount;

    /**
     * 使用开始时间
     */
    @ApiModelProperty(name = "useStart",value = "使用开始时间",example = "2020-11-22 23:22:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useStart;

    /**
     * 使用结束时间
     */
    @ApiModelProperty(name = "useEnd",value = "使用结束时间",example = "2020-11-22 23:22:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date useEnd;

    /**
     * 优惠券的说明
     */
    @ApiModelProperty(name = "remarks",value = "优惠券的说明",example = "所有商品都能用，满100减5,不能与其他优惠叠加，每单只能使用一张")
    private String remarks;

    /**
     * 创建时间
     */
    @ApiModelProperty(name = "createTime",value = "创建时间",example = "2020-11-22 23:22:00")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    private static final long serialVersionUID = 1L;
}